#include<iostream>
#include<cmath>
using namespace std;
int main()
{
	int number;
	int num[3],idx=0;
	int n_num=0;
	cin>>number;
	while(number!=0){
		num[idx]=number%10;
		number/=10;
		n_num+=num[idx]*pow(10,2-idx);
		idx++;
	}
	cout<<n_num<<endl;
	return 0;
}
